<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
  <head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <%@ include file="/common/dxp/include/common-base.jsp"%>
  <title>平台监控</title>
</head>
<body class="hold-transition ${sysColor} sidebar-mini">
<div class="wrapper">

  <!-- top start -->
  <%@include file="/common/dxp/top.jsp" %>
  <!-- top end -->

  <!-- left start -->
  <%@include file="/common/dxp/left.jsp" %>
  <!-- left end-->

<div class="content-wrapper">
    <iframe id="div_topology"  src="" width="100%" height="500px" frameborder="0"></iframe>
    <script>
        var clickMenu= 'data-monitor-list';
        var url = "${config.skywalkingUrl}";
        console.log('skywalkingUrl',url);
        var totalH = $(window).height();
        $(function () {

            var $iFrame=$("#div_topology");
            $iFrame.height(totalH-80);

            $iFrame.prop("src",url);
            if ($iFrame[0].attachEvent){
                $iFrame[0].attachEvent("onload", function(){ // IE
                });
            } else {
                $iFrame[0].onload = function(){ // 非IE
                    setTimeout(function () {

                        var iframe = document.getElementsByTagName("iframe")[0];
                        var win = iframe.contentWindow;  // 通过contentWindow获取ifame子页面的window窗体对象。(不允许跨域名访问)
                        console.log('1',win);
                        var contentWindow = iframe.contentWindow;
                        console.log('2',contentWindow);
                    }, 4000);
                };
            }
        });
    </script>
 </div>

  <!-- foot start -->
  <!-- foot start -->
  
</div>

</body>
</html>




